﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using InductBase;

namespace SharpBolt.Basics
{
    public class SbManipulator
    {
        public event EventHandler Move;
        public string name;
        private Vec2 position;
        public Vec2 Position
        {
            get { return position; }
            set {
                if (position != value)
                {
                    position = value;
                    if (Move != null)
                        Move(this, EventArgs.Empty);
                }            
            }
        }

        public Vec2 InViewPosition()
        {
            return (Position + Engine.GraphicRender.View.Location) * Engine.GraphicRender.View.Size / Engine.GraphicRender.ScreenSize;
        }
    }
}
